import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/home",
    name: "Home",
    component: () => import("@/views/Main.vue"),
  },
  {
    path: "/cv",
    name: "CV",
    component: () => import("@/views/CV.vue"),
  },
  {
    path: "/other",
    name: "Other",
    component: () => import("@/views/Other.vue"),
  },
  {
    path: "/profession",
    name: "Profession",
    component: () => import("@/views/Profession.vue"),
  },
  {
    path: "/project",
    name: "Project",
    component: () => import("@/views/Project.vue"),
  },
  {
    path: "/work",
    name: "Work",
    component: () => import("@/views/Work.vue"),
  },
  { path: "/", redirect: { name: "Home" } },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
